/*  
	PlAr is Platform Arena: a 2D multiplayer shooting game
	Copyright (c) 2010, Antonio Ragagnin <spocchio@gmail.com>
    All rights reserved.
*/

 package res.levels.xmlLE;
import java.util.HashMap;

  public  class Tag {
    public String name;

    public String data;

    public HashMap <String,String> tags;

    public Tag(String n, HashMap <String,String> t) {
	//	System.out.println("new tag  created, name:"+n+" ags:"+a.toString());
      name = n;
      tags=t;
    }
    public String get(String s) {if(tags.containsKey(s)) return tags.get(s); else return null;}
    
    
    public String toString()
    {	
		String s=name+"{";
		for(String k:tags.keySet())
		{
			s+=k+"=\""+tags.get(k)+"\" ";
		}
		s+="} "+data; 
		return s;
	}

 
  }


  
